home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kdesudo.preinst < prev    next >
Text File  |  2008-09-26  |  443b  |  25 lines

  1. #! /bin/sh
  2.  
  3. set -e
  4.  
  5. package_name=kdesudo
  6.  
  7. if [ -z "$package_name" ]; then
  8.     print >&2 "Internal Error. Please report a bug."
  9.     exit 1;
  10. fi
  11.  
  12. case "$1" in
  13.   install|upgrade|dist-upgrade)
  14.     dpkg-divert --package $package_name \
  15.     --divert /usr/lib/kde4/libexec/kdesu.distrib \
  16.     --rename /usr/lib/kde4/libexec/kdesu
  17.     ;;
  18.   abort-upgrade)
  19.     ;;
  20.   *) echo "$0: didn't understand being called with \`$1'" 1>&2
  21.      exit 0;;
  22. esac
  23.  
  24. exit 0
  25.